//
//  LYCountDownButton.h
//  LYCountDownButton
//
//  Created by VierGhost on 15/7/24.
//  Copyright (c) 2015年 dingli. All rights reserved.
//  倒计时按钮

#import <UIKit/UIKit.h>
@class LYCountDownButton;
typedef NSString* (^DidChangeBlock)(LYCountDownButton *countDownButton,int second);
typedef NSString* (^DidFinishedBlock)(LYCountDownButton *countDownButton,int second);

typedef void (^TouchedDownBlock)(LYCountDownButton *countDownButton,NSInteger tag);

@interface LYCountDownButton : UIButton {
    int _totalSecond;
    
    DidChangeBlock _didChangeBlock;
    DidFinishedBlock _didFinishedBlock;
    TouchedDownBlock _touchedDownBlock;
}

+ (LYCountDownButton *)countDownButton;
- (void)addToucheHandler:(TouchedDownBlock)touchHandler;
- (void)didChange:(DidChangeBlock)didChangeBlock;
- (void)didFinished:(DidFinishedBlock)didFinishedBlock;
- (void)startWithSecond:(int)second;
- (void)stop;

@end
